<?php
namespace app\index\model;
use think\Db;
use think\Model;

class Order extends Model
{
	//创建订单
    public static function orderAdd($sdata){
	  $rs=Db::name('user_order')->insert($sdata);
	  return $rs;
		    	
     }
     //修改创建的订单
     public static function orderSet($uid,$activity_id,$sdata){

    	$user_order=Db::name('user_order')->where(['uid'=>$uid,'activity_id'=>$activity_id])->update($sdata);
    	return $user_order;
    			    	
     }
     		   	
}